﻿using Architeture.Domain;
using Architeture.Domain.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service
{
    public interface IUserService
    {
        Task<int> AddUser(UserInfo model);
        Task<UserPage> GetUserInfo(int pageindex, int pagesize,string? UName);
        Task<int> UserDel(int uid);
        Task<UserInfo> SetUserInfo(int uid);
        Task<int> UserUp(UserInfo model);
        Task<List<mentumn>> GetUserTree(string bid);
        Task<int> UserRoleAdd(UserRoleInfo a);
        Task<List<UserRoleChed>> GetUserRoleched(int id);
        Task<List<ByUserInfo>> GetUerInfoBybid(int id);
        Task<int> UserRoleDel(int id);
        Task<int> UserRoleAddNew(int rid, List<int> uid);
        Task<UserLoginRealust> UserLogin(string name, string pwd);
        Task<List<SetUserInfo>> GetUserJwt(int id);

        Task<List<MenuSetDto>> GetUserMenuJwt(int id);

    }
}
